package com.lsh.oms.api.service.es;

import java.util.List;
import java.util.Map;

/**
 * Created by panxudong on 16/8/26.
 */
public interface EsSyncInterface {

    String selectIndex(String query, Boolean isCount);

    String selectOfcIndex(String query, Boolean isCount);

    <T> Map<String, Map<String, Object>> batchCreateIndex(List<T> orderList) throws Exception;

    <T> Map<String, Map<String, Object>> batchEditIndex(List<T> orderList) throws Exception;

    <T> void createIndex(T order) throws Exception;

    <T> void editIndex(T order) throws Exception;

    <T> void saveOrUpdateIndex(T order) throws Exception;

}
